<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
{eval $user=$this->user; $setting=$this->setting;}
<html xmlns="http://www.w3.org/1999/xhtml">

    <head>
        <title>Tipask's Control Panel</title>
        <meta http-equiv="Content-Type" content="text/html; charset={TIPASK_CHARSET}">
        <link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet" />
        <script src="js/jquery.js" type="text/javascript"></script>
        <script src="js/admin.js" type="text/javascript"></script>
    </head>

    <body>

        <div id="append">
        </div>

        <div class="container">

            <!--{if isset($message)}-->
            <!--{eval $type=isset($type)?$type:'correctmsg'; }-->
            <div class="{$type}"><p>{$message}</p></div>
            <!--{/if}-->
            
            <h3>礼品价格区间 <a href="index.php?admin_gift/add{$setting['seo_suffix']}" class="sgbtn">添加礼品</a><a href="index.php?admin_gift/addrange{$setting['seo_suffix']}" class="sgbtn">礼品价格区间</a><a href="index.php?admin_gift/note{$setting['seo_suffix']}" class="sgbtn">礼品公告</a><a href="index.php?admin_gift/log{$setting['seo_suffix']}" class="sgbtn">礼品兑换日志</a></h3>
            <br />
            <div class="note fixwidthdec">
                <p class="i">根据实际情况设置合理的价格范围！</p>
            </div>
            <div class="mainbox nomargin">
                <form action="index.php?admin_gift/addrange{$setting['seo_suffix']}" method="post">
                    <H3>礼品价格区间</H3><br />
                    <table class="opt">
                        <!--{loop $rangelist $key $rang}-->
                        <tr>
                            <td><input value="{$key}" name="gift_range[]">&nbsp;到</td>
                            <td>&nbsp;<input value="{$rang}" name="gift_range[]"></td>
                        </tr>
                        <!--{/loop}-->
                        <tr>
                            <td><input value="" name="gift_range[]">&nbsp;到</td>
                            <td>&nbsp;<input value="" name="gift_range[]"><a href="javascript:void(0);" onclick="addrange()">&nbsp;添加</a> </td>
                        </tr>
                    </table>
                    <div class="opt"><input class="btn" tabindex="3" type="submit" value=" 提 交 " name="submit"></div>
                </form>
            </div>
        </div>

    </body>
    <script type="text/javascript">
        function addrange(){
            var range = '<tr><td><input value="" name="gift_range[]">&nbsp;到</td><td>&nbsp;<input value="" name="gift_range[]"><a href="javascript:delrange(this);"></a> </td></tr>';
            $("table").after(range);
        }
    </script>
</html>
